﻿using System;

namespace TextEditor
{
    

    public class ZYTextLineEnd : ZYTextElement
    {
        public override bool CanBeLineHead()
        {
            return false;
        }

        public override string GetXMLName()
        {
            return "br";
        }

        public override bool isNewLine()
        {
            return true;
        }

        public override bool RefreshSize()
        {
            base.intWidth = 11;
            base.intHeight = base.myOwnerDocument.View.DefaultRowHeight();
            return true;
        }

        public override bool RefreshView()
        {
            if (base.myOwnerDocument.Info.ShowParagraphFlag)
            {
                base.myOwnerDocument.View.DrawLineFlag(this.RealLeft, this.RealTop + this.Height);
            }
            return true;
        }

        public override string ToZYString()
        {
            return "\r\n";
        }
    }
}

